// import { Navigate } from "react-router-dom";
import Home from "../pages/Home";
import Login from '../pages/Login'
import UseHooks from '../pages/UseHooks'
import { Navigate } from "react-router-dom";

export default [
    {
        path: '/home',
        element: <Home />
    },
    {
        path: '/login',
        element: <Login />
    },
    {
        path: '/usehooks',
        element: <UseHooks />
    },
    {
        path:'/',
        element:<Navigate to='/login'></Navigate>
    }
] as {
    path: string
    element: JSX.Element
}[]